import { IsNotEmpty } from 'class-validator';
import { PoemTag } from 'src/modules/poem-tags/entities/poem-tag.entity';
import { Poet } from 'src/modules/poet/entities/poet.entity';

export class CreateDto {
  @IsNotEmpty({ message: '标题不能为空' })
  title: string;

  @IsNotEmpty({ message: '内容不能为空' })
  content: string;

  translate: string;

  poetId: typeof Poet.prototype.id;

  poemTagIds?: Array<typeof PoemTag.prototype.id>;

  notes: string | null;
}
